]> dgit.raspbian.org Git - gnome-shell.git/commit
slider: Include handle border radius when calculating center offset
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 1 Mar 2020 13:01:14 +0000 (14:01 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 6 Mar 2020 19:29:06 +0000 (19:29 +0000)
commit3ddae9d8151718eeda283823d5440550e61e7612
tree05d32cd20a329e2dd79d4a71bc989e3ddc2d3b08
parente22421a25af00792070d4e211c9cda22f901630c
slider: Include handle border radius when calculating center offset

Since 38da479ee we correctly ceil the non-integer radius of the slider
handle when calculating the offset for drawing the circle. Since the
handle also has a border with a width of 1px by default, we should also
factor that in when calculating the offset.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1569
js/ui/slider.js